package main

import (
	"net/http" 
	"fmt"
	"mydoc/controller"
)

func main() {
	http.HandleFunc("/", func(w http.ResponseWriter,r  *http.Request) {
		run := controller.Index{}
		run.W = w
		run.Main()
	})
	err := http.ListenAndServe(":888", nil) //设置监听的端口
	if err != nil {
		fmt.Println("有问题咯")
	}
}
